//音乐的位置
class MusicPosition {
  int? position;
  int? duration;

  Object encode() {
    final Map<Object?, Object?> pigeonMap = <Object?, Object?>{};
    pigeonMap['position'] = position;
    pigeonMap['duration'] = duration;
    return pigeonMap;
  }

  static MusicPosition decode(Object message) {
    final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
    return MusicPosition()
      ..position = pigeonMap['position'] as int?
      ..duration = pigeonMap['duration'] as int?;
  }
}